Set (to empty) embedded data in directory from Java code | XM Community
Skip to main content
Question

Set (to empty) embedded data in directory from Java code

  • September 20, 2023
  • 5 replies
  • 205 views

Forum|alt.badge.img+1

Hi XM Community, I would need support to set up a workflow that allows me to delete all values of a field (embedded data) in the directory. Qualtrics technical support suggested to use the "Code" task, which allows to run a custom code. Has anyone developed or is able to write Java code that performs this activity? The goal is for the workflow to "empty" the expected column, leaving all values blank. 

 

I hope someone can help me and the post will also help other users who will be in my scenario.

Andrea

5 replies

Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • September 20, 2023

@Amantelli 

Have you tried just creating an XMD Task and updating embedded data with blanks or an API which updates based on Contactid before going to code task.

 

 


Forum|alt.badge.img+1
  • Author
  • September 20, 2023

@Deepak thank you for responding. I have already investigated the XMD Task with Q Support, but without success. They suggested me to use the “Code” task, that should be easier to setup than an API call.


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • September 20, 2023

@Amantelli 

I believe API would be a lot easier, if your brand has webservice task enabled. With code task it would be complex, not sure why that was recommended.

 


Forum|alt.badge.img+1
  • Author
  • September 27, 2023

@Deepak could you suggest the specific API I should use? I kindly ask you also to explain the procedure to setup this - which are the steps to follow? Any additional material could be useful (e.g. support page link).


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • September 27, 2023

@Amantelli

Have you tried just creating an XMD Task and updating embedded data with blanks or an API which updates based on Contactid before going to code task.

 

 

@Amantelli I have linked the API here and you can refer this support page

Hope it helps!