以下是我拥有的当前代码 : var query = ServiceRequest.QueryByElements; var selectionParams = query.CreateSelectionParams(); selectionParams.Add(query.Name.content," I"," EQ","测试OData处理Web"); var结果= query.ExecuteDataOnly(selectionParams); var ticket = result.GetFirst(); var sr = ServiceRequest.Retrieve(ticket.UUID);
您好,
您可以使用PDI/SDK进行以下操作:
1。 为活动创建XBO,并为BeforeSave生成脚本
2。 进行检查(InitiatorCode == 2,ProcessingTypeCode == 004,GroupCode/content == 0004),即它是入站电子邮件。
3。 现在,您可以根据需要/逻辑为BusinessTransactionDocumentReference创建一个创建节点实例。 (例如: https://answers.sap .com/questions/501647/c4c-pdi-create-opportunity-with-reference --- how-to.html )
谢谢
Saurabh
谢谢你索拉!
我设法为新电子邮件创建了到现有票证的引用(22280),但是电子邮件仍然创建了新票证(22377)并与之相关联。
以下是我拥有的当前代码
:
var query = ServiceRequest.QueryByElements;
var selectionParams = query.CreateSelectionParams();
selectionParams.Add(query.Name.content," I"," EQ","测试OData处理Web");
var结果= query.ExecuteDataOnly(selectionParams);
var ticket = result.GetFirst();
var sr = ServiceRequest.Retrieve(ticket.UUID);
var ref:Activity.BusinessTransactionDocumentReference的元素;
ref.BusinessTransactionDocumentReference.ID = sr.ID.content;
ref.BusinessTransactionDocumentReference.TypeCode =" 118";
ref.BusinessTransactionDocumentRelationshipRoleCode =" 2";
this.BusinessTransactionDocumentReference.Create(ref);
一周热门 更多>