Hello,
I have a web service workflow task which does a GET call to retrieve more info from SAP C4C.
I would like to use pipe text to pass the info the web service retrieves to a survey, as embedded data.
I am trying to access the contents of the answer, for example “SubjectName”, but it never works.
Does anyone know what I am doing wrong?
Thanks!
Below the answer of the GET:
<feed>
<xml:base>https://myxxx.crm.ondemand.com/sap/c4c/odata/cust/v1/visits_qual/</xml:base>
<xmlns>http://www.w3.org/2005/Atom</xmlns>
<xmlns:m>http://schemas.microsoft.com/ado/2007/08/dataservices/metadata</xmlns:m>
<xmlns:d>http://schemas.microsoft.com/ado/2007/08/dataservices</xmlns:d>
<id>https://my.crm.ondemand.com/sap/c4c/odata/cust/v1/visits_qual/ActivityCollection</id>
<title>
<_>ActivityCollection</_>
<type>text</type>
</title>
<updated>2024-09-18T09:26:00Z</updated>
<author>
<name/>
</author>
<link>
<href>ActivityCollection</href>
<rel>self</rel>
<title>ActivityCollection</title>
</link>
<entry>
<m:etag>W/"datetimeoffset'2024-09-17T12%3A12%3A33.3063110Z'"</m:etag>
<id>https://myxxx.crm.ondemand.com/sap/c4c/odata/cust/v1/visits_qual/ActivityCollection('E1148E4D37621EEF9C81ED46DB8DEE97')</id>
<title>
<_>ActivityCollection('E1148E4D37621EEF9C81ED46DB8DEE97')</_>
<type>text</type>
</title>
<updated>2024-09-18T09:26:00Z</updated>
<category>
<term>cust.Activity</term>
<scheme>http://schemas.microsoft.com/ado/2007/08/dataservices/scheme</scheme>
</category>
<link>
<href>ActivityCollection('E1148E4D37621EEF9C81ED46DB8DEE97')</href>
<rel>edit</rel>
<title>Activity</title>
</link>
<link>
<href>ActivityCollection('E1148E4D37621EEF9C81ED46DB8DEE97')/ActivityParty</href>
<rel>http://schemas.microsoft.com/ado/2007/08/dataservices/related/ActivityParty</rel>
<type>application/atom+xml;type=feed</type>
<title>ActivityParty</title>
</link>
<content>
<type>application/xml</type>
<properties>
<ObjectID>E1148E4D37621EEF9C81ED46DB8DEE97</ObjectID>
<ETag>2024-09-17T12:12:33.3063110Z</ETag>
<LifeCycleStatusCode>3</LifeCycleStatusCode>
<ID>44064917</ID>
<CreationDate>2024-09-11T00:00:00</CreationDate>
<Z_AccountERPID_KUT>1202854</Z_AccountERPID_KUT>
<Z_VisitStatus_KUT/>
<SubjectName>AP check-in</SubjectName>
<VisitTypeCode>Z001</VisitTypeCode>
<Z_TechnicalInstallation_KUT/>
<Z_SubLineofBusiness3_KUT>00111</Z_SubLineofBusiness3_KUT>
</properties>
</content>
</entry>
</feed>