Qualtrics to SuccessFactors Update through Qualtrics Web Service API Call | XM Community
Skip to main content

We have been working on a PoC where the need is to update Qualtrics Survey Response back into SuccessFactors through Qualtrics Web Service API call. While doing that we are facing some issues

  • How to apply a logic in Qualtrics Web Service setup screen so that we can convert date information to be expected milliseconds format once participate answers question with date response to the Qualtrics Survey question – "/Date()/", = number of milliseconds since midnight Jan 1, 1970. Example: "/Date(1495746637000)/" for January 14, 2022.

  • How to implement OAUTH2.0 authentication under Qualtrics Web Service custom header section as Basic authentication for SuccessFactors will be decommissioned soon. I hope this would impact for all the SuccessFactors customers opting Qualtrics Web Service feature.

  • How to configure PUT in Qualtrics Web Service Method as it is giving the below error – http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">NotFoundExceptionFunctionImport PerEmergencyContacts doesn't exist in metadata!.

Qualtrics SFSF Update Issues.PNGPlease refer this screenshot attached herewith.


For point 1:
I believe we can handle this requirement using javascript and embedded data.
image.pngimage.png//Add the following javascript code in first or last ASK ALL question - according to your requirement
Qualtrics.SurveyEngine.addOnload(function()
{
var Datemillsec = Qualtrics.SurveyEngine.getEmbeddedData("CurrentDate");
//Convert date to milli second
let millisec = Datemillsec.getMilliseconds();
//set the embedded data with the milli second
Qualtrics.SurveyEngine.setEmbeddedData("Dateval", millisec);
});


Hi Vinoth,
Many thanks for sharing the solution.
I did try to implement the same, but the survey flow is failing as no input data is getting populated. Please refer the below screenshots as I might be missing something.

image.png
image.png
image.pngI have added the JavaScript at the beginning of the Survey flow -
image.png
image.png
Thanks again and please let me know if you find anything is missing or wrong in the design.


Thanks & Regards,
Sudip Banerjee


Leave a Reply