views:

1535

answers:

5

I would like to do the following:

when a Sales person assigns a custom entity (let's call it 'Primary Expertise') to an Opportunity in MS CRM 4.0, the system would share the Opportunity with the user that is defined as the Owner of the associated 'Primary Expertise' record.

I would like to do it automatically via workflow but cannot find the workflow step that would accomplish that. Yes, and I read on some forums that it's actually not possible yet, only via a .NET assembly.

Experience, anyone?

+2  A: 

Correct, it is only possible via .NET assembly. However you could (If you using CRM 4) have the workflow change the owner to the owner of the activity and use the share with previous owner option to enable the old owner access to your custom entity?

Robert MacLean
A: 

Hi

I have a similar problem, trying to share a record using a workflow in CRM 4. I know how to assign a record to another user in a workflow, but I don't see any options to share with the previosu owner.

Any help here please?

+2  A: 

Try this:

http://crm40sharestep.codeplex.com/

regards!

+1  A: 

Hi Thomas,

It is possible only by invoking custom workflow activity. Inside the custom workflow activity, you can invoke GrantAccessRequest and GrantAccessResponse by configuring the PrincipalAccess object.

Please refer to this "Sharing Object" section for details

Regards,

hadi

hadi teo
A: 

Hello, someone could show me how to send email notifications when shares a record. Thank you

carlos