Hi,
I have developed custom workflow.
When I run the workflow, everything working well , only I can not update a field.
Part of code:
//update a24_potential_hint_commercials_opt in account entity Entity accountEntity = new Entity("account"); ColumnSet colSet = new ColumnSet("accountid", "a24_potential_hint_commercials_opt"); accountEntity = service.Retrieve("account", account.Id, colSet); if (accountEntity.Attributes.Contains("a24_potential_hint_commercials_opt")) { accountEntity["a24_potential_hint_commercials_opt"] = new OptionSetValue(a24_potential_hint_commercials_opt); cont = true; } else { var new_value = new OptionSetValue(a24_potential_hint_commercials_opt); accountEntity.Attributes.Add("a24_potential_hint_commercials_opt", new_value); } service.Update(account); //end update a24_potential_hint_commercials_opt in account entity
I don not have any errors while executing, just no update.
I have checked, I have appropriate Id of account and attribute exits in entity.
Please help me ...
Thanks in advance..
Kind regards
Martin
*This post is locked for comments