You need to sign in to do that
Don't have an account?

JSON!!
Can anyone help me in creating below JSON using javascript? I have all values but unable to create a JSON.
UserId1 and UserId2 is nothing but Salesforce user ids.
I have used this way to create this JSON but was not able to create it.
UserId1 and UserId2 is nothing but Salesforce user ids.
{ "UserId1": { "Account": "Private", "Contact": "Private", "Oppor": "Private", "Case": "Private", "Team": "--None--" }, "UserId2": { "Account": "Private", "Contact": "Private", "Oppor": "Private", "Case": "Private", "Team": "--None--" } }
I have used this way to create this JSON but was not able to create it.
var finalJSON = { }; finalJSON.userId = <UserIdValue>; finalJSON.userId = '{"Account": "'+Account+'","Contact": "'+Contact+'","Opportunity": "'+Opportunity+'","Case": "'+Case+'","Team": "'+Team+'"}';
Hello Saransh,
Try following Code:
If its helps, please mark as best answer so it will help to other who will serve same problem.
Thanks!
Thanks!
Thanks!