Produced by Araxis Merge on 2/1/2017 2:57:42 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM\trunk\Workflows | SetContactWebRoles.cs | Tue Dec 20 19:50:59 2016 UTC |
| 2 | Wed Feb 1 19:57:42 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 79 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | ||||||
| 2 | // <copyri ght file=" SetContact WebRoles.c s" company ="Microsof t Services UK"> | |||||
| 3 | // Copyrig ht (c) 201 6 All Righ ts Reserve d | |||||
| 4 | // </copyr ight> | |||||
| 5 | // <author >Microsoft Services UK</author > | |||||
| 6 | // <date>1 1/28/2016 7:46:22 PM </date> | |||||
| 7 | // <summar y>Implemen ts the Set ContactWeb Roles Plug in.</summa ry> | |||||
| 8 | // <auto-g enerated> | |||||
| 9 | // Thi s code was generated by a tool . | |||||
| 10 | // Run time Versi on:4.0.303 19.1 | |||||
| 11 | // </auto- generated> | |||||
| 12 | using Syst em; | |||||
| 13 | using Syst em.Collect ions.Gener ic; | |||||
| 14 | using Syst em.Collect ions.Objec tModel; | |||||
| 15 | using Syst em.Globali zation; | |||||
| 16 | using Syst em.Linq; | |||||
| 17 | using Syst em.Text; | |||||
| 18 | using Syst em.Service Model; | |||||
| 19 | using Syst em.Threadi ng.Tasks; | |||||
| 20 | using Syst em.Activit ies; | |||||
| 21 | using Micr osoft.Xrm. Sdk; | |||||
| 22 | using Micr osoft.Xrm. Sdk.Workfl ow; | |||||
| 23 | using Syst em.Runtime .Serializa tion; | |||||
| 24 | ||||||
| 25 | namespace BTSSS.Crm. Contact.Wo rkflows | |||||
| 26 | { | |||||
| 27 | ||||||
| 28 | ||||||
| 29 | /// </ summary> | |||||
| 30 | public class Set ContactWeb Roles: Wor kFlowActiv ityBase | |||||
| 31 | { | |||||
| 32 | ||||||
| 33 | ||||||
| 34 | #r egion Prop erties | |||||
| 35 | // Property f or Entity contact | |||||
| 36 | [R equiredArg ument] | |||||
| 37 | [I nput("Cust om workflo w activity to set th e correct web roles for a new portal con tact/user. ")] | |||||
| 38 | [R eferenceTa rget("cont act")] | |||||
| 39 | pu blic InArg ument<Enti tyReferenc e> Contact { get; se t; } | |||||
| 40 | #e ndregion | |||||
| 41 | ||||||
| 42 | ||||||
| 43 | // / <summary > | |||||
| 44 | // / Executes the WorkF low. | |||||
| 45 | // / </summar y> | |||||
| 46 | // / <param n ame="crmWo rkflowCont ext">The < see cref=" LocalWorkf lowContext "/> which contains t he | |||||
| 47 | // / <param n ame="execu tionContex t" > <see cref="Code ActivityCo ntext"/> | |||||
| 48 | // / </param> | |||||
| 49 | // / <remarks > | |||||
| 50 | // / For impr oved perfo rmance, Mi crosoft Dy namics 365 caches Wo rkFlow ins tances. | |||||
| 51 | // / The Work Flow's Exe cute metho d should b e written to be stat eless as t he constru ctor | |||||
| 52 | // / is not c alled for every invo cation of the WorkFl ow. Also, multiple s ystem thre ads | |||||
| 53 | // / could ex ecute the WorkFlow a t the same time. All per invoc ation stat e informat ion | |||||
| 54 | // / is store d in the c ontext. Th is means t hat you sh ould not u se global variables in WorkFlo ws. | |||||
| 55 | // / </remark s> | |||||
| 56 | pu blic overr ide void E xecuteCRMW orkFlowAct ivity(Code ActivityCo ntext exec utionConte xt, LocalW orkflowCon text crmWo rkflowCont ext) | |||||
| 57 | { | |||||
| 58 | ||||||
| 59 | if (crmW orkflowCon text == nu ll) | |||||
| 60 | { | |||||
| 61 | thro w new Argu mentNullEx ception("c rmWorkflow Context"); | |||||
| 62 | } | |||||
| 63 | ||||||
| 64 | try | |||||
| 65 | { | |||||
| 66 | // T ODO: Imple ment your custom act ivity hand ling. | |||||
| 67 | } | |||||
| 68 | catc h (FaultEx ception<Or ganization ServiceFau lt> e) | |||||
| 69 | { | |||||
| 70 | // H andle the exception. | |||||
| 71 | thro w e; | |||||
| 72 | } | |||||
| 73 | ||||||
| 74 | } | |||||
| 75 | ||||||
| 76 | ||||||
| 77 | } | |||||
| 78 | ||||||
| 79 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.