Can Someone Provide Steps for Object Mapping and Comparison?

Hi All,

Can you help me creating a object mapping and compare the object for cross domain?

I have created a connect in Sandbox environment and tried creating object mapping. But for some reason not able to understand the parameters how and what needs to be passed.

I have read the document but there is no example of it.

Can anyone help me creating mapping and steps to compare?

Regards,
Shekhar Das

Can you please send a screen print of what you are working on?

Hello @shekhardas1825.

Here is an example of how you can replace all sourceIds of one value to another:

You will need to use the JSON and create a JSONPath that will hit that attribute on the object. You can use any tool for this, but I like to use https://jsonpath.com/

The original value will be the value you want to replace and the new value will be the value to replace with. So this essentially works as a find and replace for any attributes indexed by the JSONPath. Ensure you define this on the environment you are deploying the draft to and for the environment you are deploying from.

I hope this helps. If you need any clarification, feel free to ask :slight_smile:

1 Like

@bcariaga Thank you for your response, the query is more related to comparison of objects like comparing Sandbox source with Production source.

So I have created a production connection in my sandbox environment.

How can I now compare the object like rules, sources etc.?

For example: If I took source export from sandbox and production, how can I compare the differences between sandbox and production source?

Question on mapping from your screenshot:
What is the original value? Is it sandbox identity_profile ID?
What is the new value? Is it production identity_profile ID?
Does this mapping work real time? when enabled does it push the source object details to target object?
Is this mapping related to deployment?

Regards,
Shekhar Das

1 Like

Hello @shekhardas1825.

This would be an example of deployment/migration from Sandbox to Production. For this, you need to create a connection in you production to your sandbox tenant. If you want to compare, you will need to:

  1. Create a backup in the sandbox of the objects you want.
  2. In the production view this backup and select Draft for Deployment

In your draft, you can view the objects and see the differences. In this scenario, your original value would be the sandbox source id and the new value is the production source id to replace with.

The names of objects is typically how the system will determine whether you are creating or modifying the object. You don’t need to replace the ID of the object itself, only the references inside the objects.

4 Likes

Thank you @bcariaga I will validate these steps and let you know.

2 Likes

@bcariaga thank you very much. I was afraid to experiment in production but as you have suggested the steps that solves my query.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.