Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

sandeepgudipudi
New Contributor III
New Contributor III

Hi Attached logs

Postman screenshot


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

@sandeepgudipudi  need this details


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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