Raman Sinclair
Raman Sinclair

Reputation: 1283

CRM : Workflow : Modify hidden field

How to modify hidden field of an entity e.g. ModifiedOn (of an Opportunity entity) with standart workflow process?

The problem is that in the 'Set Properties' windows of workflow I can't see this fields.

I tried to do this in database, 'WorkflowBase' table, 'Xaml' column, modifying xml string there; but that language is kind of diffficult to understand.

UPDATE 1:

<mxswa:Workflow>
    <Sequence DisplayName="UpdateStep1">
        <Assign x:TypeArguments="mxs:Entity" To="[CreatedEntities('related_objectid#opportunity#Temp')]" Value="[New Entity('opportunity')]" />
        <Assign x:TypeArguments="s:Guid" To="[CreatedEntities('related_objectid#opportunity#Temp').Id]" Value="[InputEntities('related_objectid#opportunity').Id]" />
        <mxswa:UpdateEntity DisplayName="UpdateStep1" Entity="[CreatedEntities('related_objectid#opportunity#Temp')]" EntityName="opportunity" />
        <Assign x:TypeArguments="mxs:Entity" To="[InputEntities('related_objectid#opportunity')]" Value="[CreatedEntities('related_objectid#opportunity#Temp')]" />
        <Persist />
    </Sequence>
</mxswa:Workflow>   

Upvotes: 0

Views: 274

Answers (1)

dynamicallyCRM
dynamicallyCRM

Reputation: 2990

For a field to show up in the workflow designer update entity form, it needs to be part of at least one entity form, so if you do not see a field, it is probably not added to any of the forms on the entity.

Edit a form and add the field you want to show up on the workflow designer form, publish your customizations and when you reopen your workflow designer you should see the field.

Side note, some attributes like modifiedon, ownerid cannot be updated using either workflows or using SDK, CRM ignores such updates.

Upvotes: 2

Related Questions