Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 9244

update originatingleadid

$
0
0

I'm trying to update an account with an originating lead (this is a data migration deal so I am not in normal channels.)  I've tried this and nothing happens.  I'm wondering if it is possible or if I'm neglecting something:

        static void acctGetOrigLead(IOrganizationService service, Guid acctid, Guid lead) {
            EntityReference origLead = new EntityReference("lead", lead);
            Entity acct = new Entity();
            acct.LogicalName = "account";
            acct.Id = acctid;
            acct.SetAttributeValue<EntityReference>("originatingleadid", origLead);
//            acct.Attributes.Add("originatingleadid", origLead);
            service.Update(acct);
        }

No errors.  It just runs to the end and yields no results.

Thanks


Viewing all articles
Browse latest Browse all 9244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>