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?
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
@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?
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:
Create a backup in the sandbox of the objects you want.
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.