-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1 Finally got around to adding the Assign Messages!
- Loading branch information
1 parent
fc10b69
commit f4a4079
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// AssignRequest.cs | ||
// | ||
|
||
|
||
using System.Collections.Generic; | ||
using Xrm.Sdk; | ||
using Xrm.Sdk.Messages; | ||
|
||
namespace Xrm.Sdk.Messages | ||
{ | ||
public class AssignRequest : OrganizationRequest | ||
{ | ||
public EntityReference Target; | ||
public EntityReference Assignee; | ||
|
||
public string Serialise() | ||
{ | ||
return "<request i:type=\"c:AssignRequest\" xmlns:a=\"http://schemas.microsoft.com/xrm/2011/Contracts\" xmlns:c=\"http://schemas.microsoft.com/crm/2011/Contracts\">" | ||
+ " <a:Parameters xmlns:b=\"http://schemas.datacontract.org/2004/07/System.Collections.Generic\">" | ||
+ " <a:KeyValuePairOfstringanyType>" | ||
+ " <b:key>Target</b:key>" | ||
+ Attribute.SerialiseValue(Target,null) | ||
+ " </a:KeyValuePairOfstringanyType>" | ||
+ " <a:KeyValuePairOfstringanyType>" | ||
+ " <b:key>Assignee</b:key>" | ||
+ Attribute.SerialiseValue(Assignee, null) | ||
+ " </a:KeyValuePairOfstringanyType>" | ||
+ " </a:Parameters>" | ||
+ " <a:RequestId i:nil=\"true\" />" | ||
+ " <a:RequestName>Assign</a:RequestName>" | ||
+ " </request>"; | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
SparkleXrmSource/SparkleXrm/Sdk/Messages/AssignResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// AssignResponse.cs | ||
// | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Xml; | ||
using Xrm.Sdk.Messages; | ||
|
||
namespace Xrm.Sdk.Messages | ||
{ | ||
public class AssignResponse : OrganizationResponse | ||
{ | ||
|
||
public AssignResponse(XmlNode response) | ||
{ | ||
// Nothing to see here! | ||
// AssignResponse contains no response values | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters