This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function filterTagsSubgrid(executionContext: any): Promise<void> { | |
try { | |
var formContext: any = executionContext.getFormContext(); | |
} | |
catch (e) { | |
var formContext: any = executionContext; | |
}; | |
var formType: number = formContext.ui.getFormType(); | |
var values: any = [0, 1, 4, 6]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function CloseOpportunity(inputParameters : any) : Promise<void> { | |
var opportunityclose : any = { | |
"opportunityid@odata.bind": "/opportunities" + inputParameters.opportunityId.replace("{", "(").replace("}", ")"), | |
"@odata.type": "Microsoft.Dynamics.CRM.opportunityclose", | |
"actualrevenue": 0, | |
"actualend": new Date(), | |
"description": inputParameters.description | |
} | |
var loseOpportunityRequest : any = { |