Hi Forum
I use the code below.
_service.Associate(
Team.EntityLogicalName,
_teamId,
new Relationship("teamroles_association"),
new EntityReferenceCollection() {
new EntityReference(Role.EntityLogicalName, _roleId) });
But it seems to be async, that means if I immediately after calling "service.Associate" tries to assign the team to a Account entity, it fails beacuse the team doesn´t have the right privileges. If i wait 2 seconds it works.
Do anybody have a good idea how to solve this? Why didn't MS make a Sync service also or give the opportunity to add a callbackfunction to the parameterlist. ?
br
henrik
--- Best regards Henrik Skydtsgaard