ON click an action should be performed in html dashboard
ON click an action should be performed in html dashboard
if i give current user name its publishing
ok
Hi Sandee,
1. Make sure your approval button's id attribute value equals "approval", only if a element with id "approval" exists then approval function will be executed.
2. Try to change currentUserName == "Dean" to your own current user name to test updateRecord function if previous steps went well.
Regards,
Clofly
code
Hi,
make sure you have submited a new record before execute update function,
alert newRecordId inside approval button function
$('#approval').on('click', function() {
alert(newRecordId);
var currentUserId = window.parent.Xrm.Page.context.getUserId().replace('{', '').replace('}', '');
var currentUserName = window.parent.Xrm.Page.context.getUserName();
only when newRecordId is available then you can jump into updateRecord function.
Regards,
code
,
code
Hi,
Remove the original and change to my latest addRecord function.
Regards,
Clofly
code
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156