Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Salesforce Modify Account Json or Salesforce Modify Account Json when Entitlement is selected

sandeepgudipudi
New Contributor III
New Contributor III

I am using Salesforce OOTB Connector, i got a requirement from Salesforce team when entitlement is selected as "Marketing User" or entitlement contains "Marketing" or "Sales" then set attribute "UserPermissionsMarketingUser": true, which ideally should checked in salesforce user profile. 

sandeepgudipudi_0-1716413786330.png

 

Modify Account Json

{
"Alias": "${user.firstname.toString().substring(0,1)}${user.lastname.toString().substring(0,4)}",
"Email":"${user?.getEmail()}",
"Username":"${accountName}",
"FirstName":"${user?.getFirstname()}",
"LastName":"${user?.getLastname()}",
"TimeZoneSidKey":"America/Los_Angeles",
"LocaleSidKey":"en_US",
"EmailEncodingKey":"ISO-8859-1",
"ProfileId":"${profileId}",
"LanguageLocaleKey":"en_US",
"IsActive":true,
"UserPermissionsMarketingUser": true,
"FederationIdentifier":"${user?.getUsername()}"
"UserPermissionsMarketingUser": "${if(arsTasks.entitlement_valueKey.entitlement_value == 'Marketing User'){true}}"
}

16 REPLIES 16

rushikeshvartak
All-Star
All-Star

Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .



‼️‼️⚠️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.⚠️‼️‼️

does it works from postman?


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

sandeepgudipudi
New Contributor III
New Contributor III

Hi Attached logs

Postman screenshot


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

sandeepgudipudi
New Contributor III
New Contributor III

sandeepgudipudi_0-1716417551336.png

[This post has been edited by a Moderator to remove sensitive information.]

 

Postman screenshot of salesforce showing this attribute is correct and working


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

@sandeepgudipudi  need this details


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Can you elaborate which details are needed

Does salesforce api works from postman ?

Refer sample - https://www.postman.com/salesforce-developers/workspace/salesforce-developers/request/12721794-fc451...


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Salesforce api works and here modify account json is not working rather modify account task is also not creating

I need salesforce API screenshot from postman


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

From postman the attribute is updating

sandeepgudipudi_0-1716488522860.pngsandeepgudipudi_1-1716488561463.png

 

You are passing 2 times 

{
"Alias": "${user.firstname.toString().substring(0,1)}${user.lastname.toString().substring(0,4)}",
"Email":"${user?.getEmail()}",
"Username":"${accountName}",
"FirstName":"${user?.getFirstname()}",
"LastName":"${user?.getLastname()}",
"TimeZoneSidKey":"America/Los_Angeles",
"LocaleSidKey":"en_US",
"EmailEncodingKey":"ISO-8859-1",
"ProfileId":"${profileId}",
"LanguageLocaleKey":"en_US",
"IsActive":true,
"FederationIdentifier":"${user?.getUsername()}"
"UserPermissionsMarketingUser": "${if(arsTasks.entitlement_valueKey.entitlement_value == 'Marketing User'){true}}"
}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

this did not solve issue

Modify account will not provide entitlement information hence you need to use dynamic attributes and use dynamic attributes in modify json to implement logic 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

sandeepgudipudi
New Contributor III
New Contributor III

Hi,

 

Do you have update on my usecase

sandeepgudipudi
New Contributor III
New Contributor III

modify account task is also not creating