cancel
Showing results for 
Search instead for 
Did you mean: 

C4C Surveys - get the survey URL via oData

swallis
Participant
0 Kudos

Currently for surveys in C4C we send these out via email using the #surveyNNN# placeholder.

However we have a new requirement where we'd like to put the survey link on our website. Is there any way to generate/get the ID in the survey URL so we can construct it externally, rather than as part of a workflow?

https://myxxxxxx.crm.ondemand.com/sap/ap/public/survey?id=1A1F4FD523AA6FCB1DGE5F19CBC13E7AECE7FDD5

I see there is an odata service SurveysCollection (note extra 's' on Survey, not SurveyCollection which just contains each survey design) but I can't seem to access that - even with full admin rights.

Accepted Solutions (1)

Accepted Solutions (1)

swallis
Participant

Found another way. You can get the ID for the URL in SDK/PDI via Questionnaire.xbo > ValuationCollection.node > ValuationCollection.ID

sbslmhmt
Participant
0 Kudos

Hello swallis ,

I am trying to find ID for a Sales Quote's survey. I don't really understand how you fetch the id based on order or quote?Did you use a query could you help me on this subject?

Best regards.

swallis
Participant

Hi sbslmhmt

I was using this in the context of a ServiceRequest in C4C Service. I'm not sure about anything on the Sales side, but the query I used was Questionnaire.ValuationCollection.QueryByElements(ServiceRequestID)

Maybe there will be some clues on other queries you could run in the Cloud App Studio Repository Explorer for your solution under Questionnaire > ValuationCollection

Hope that is helpful.

sbslmhmt
Participant

Thank you swallis, Same query works for Sales Quotes too. Id is generated after survey is generated by system but it still works for me. I appreciate your help

Answers (0)