You need to sign in to do that
Don't have an account?
Jacobus
Update profile user license type
Hi,
I am trying to find a way to update an existing profile with a new user license type, ex Force.com App Subscription -> Company Community using java script without having to clone. I am unfortunately battling with the code.
Any advise is welcome. See code below.
I am trying to find a way to update an existing profile with a new user license type, ex Force.com App Subscription -> Company Community using java script without having to clone. I am unfortunately battling with the code.
Any advise is welcome. See code below.
{!REQUIRESCRIPT("/soap/ajax/37.0/connection.js")} var all_select = document.getElementsByTagName("userLicense"); var myArray = new Array(500) for (i = 0; i < all_select.length; i++) { myArray.push(all_select[i].id +".value="+all_select[i].value); } for (var i = 0; i < myArray.length; i++) { alert("Profile : " + myArray[i]); }
Please check with below javascript code snippet. For more information on same idea chek here:
- https://success.salesforce.com/ideaView?id=08730000000Z6gBAAS
- http://salesforce.stackexchange.com/questions/18306/how-to-change-profile-licence-type
Mark this as solved if it helps.Best Regards,
Nagendra.P