This article describes how to synchronize member, requested for and requested by information between Xurrent and other systems.
Outgoing sync (Xurrent → Remote system)
To send assignee, reporter and requested for information from Xurrent to the remote system:
replica.assignee = entity.assignee
replica.reporter = entity.reporter
replica.requested_for = entity.requested_forNote: If Xurrent proxy user token has limited scopes and permissions, these 3 properties will provide only name and id of person. In case if you want to send the email id of the person you need to provide Person — Read permission/scope to the token.
Read here more about required permissions or scopes: Xurrent Personal Access Required Token Permissions or Scopes
Incoming sync (Remote system → Xurrent)
There are 2 ways to set the user fields in Xurrent:
1. By providing person id directly: Provide internal id of the person, ask your admin to provide that.
2. By searching email of the person: Provide email to nodeHelper's getUserByEmail method.
Note: To use getUserByEmail, the proxy user Personal Access Token should have Person — Read permission/scope.
// OPTION 1: By providing direct person identity.memberId = 12345entity.requestedById = 5027436entity.requestedForId = 5027436// OPTION 2: By searching person's email and setentity.assignee = nodeHelper.getUserByEmail("abc@demo.com")entity.reporter = nodeHelper.getUserByEmail("abc@demo.com")entity.requested_for = nodeHelper.getUserByEmail("abc@demo.com")
Read here more about how to set team field : How to sync Team Field in Xurrent
More information
- How to Sync Requests in Xurrent
- Xurrent Fields and Entities Available for Synchronization
- Xurrent Personal Access Required Token Permissions or Scopes
- How to sync Team Field in Xurrent
Have more questions? Ask the community