Beispiel #1
0
        /// <summary>
        /// Retrieves related field mapping record.
        /// </summary>
        /// <returns></returns>
        private Entity RetrieveFieldMapping()
        {
            var mappingRef = this.Entity.GetAttributeValue <EntityReference>("new_bordereauxfieldmaping");
            var mapping    = OrgService.Retrieve(mappingRef);

            return(mapping);
        }
Beispiel #2
0
 private Account GetTargetAccount()
 {
     return(OrgService.Retrieve(Account.EntityLogicalName, accountId, new ColumnSet(true))
            .ToEntity <Account>());
 }
Beispiel #3
0
 private Contact GetTriggeringContact()
 {
     return(OrgService.Retrieve(Contact.EntityLogicalName, triggerContactId, new ColumnSet(true))
            .ToEntity <Contact>());
 }
Beispiel #4
0
 public TEntity Retrieve(Guid id, ColumnSet columns)
 {
     return(OrgService.Retrieve(EntityName, id, columns).ToEntity <TEntity>());
 }