Custom Activity, not working correctly | Community
Skip to main content
Level 3
April 20, 2025
Solved

Custom Activity, not working correctly

  • April 20, 2025
  • 2 replies
  • 685 views

I created a simple activity by duplicating the js activity, modified the form, the workflow schema extension etc etc.

However, the acitvity does not even log logInfo("test");

 

On the other hand, I am trying to construct a JSON key value pair object and enrich it with the workflow's instance vars to no avail.

 

 

 

the js library call is able to get the content of the activity, but not eniched.

 

function mytestactivity_call() { logInfo(activity.script); }

 

What is missing?

 

 

Best answer by _Manoj_Kumar_

Hello @o_x  

Your custom activity is taking all the values as text and that is why they are not dynamic. Can you please share more details on your use case?

 

If you want to pass dynamic data then try to use the method in your schema.

 

https://experienceleague.adobe.com/en/docs/campaign-classic/using/configuring-campaign-classic/schema-reference/elements-attributes/methods

https://experienceleague.adobe.com/en/docs/campaign-classic/using/configuring-campaign-classic/schema-reference/schema-structure

 

 

 

2 replies

o_XAuthor
Level 3
April 20, 2025
_Manoj_Kumar_
Community Advisor
_Manoj_Kumar_Community AdvisorAccepted solution
Community Advisor
April 21, 2025

Hello @o_x  

Your custom activity is taking all the values as text and that is why they are not dynamic. Can you please share more details on your use case?

 

If you want to pass dynamic data then try to use the method in your schema.

 

https://experienceleague.adobe.com/en/docs/campaign-classic/using/configuring-campaign-classic/schema-reference/elements-attributes/methods

https://experienceleague.adobe.com/en/docs/campaign-classic/using/configuring-campaign-classic/schema-reference/schema-structure

 

 

 

     Manoj     Find me on LinkedIn
Sukrity_Wadhwa
Community Manager
Community Manager
April 28, 2025

Hi @o_x,

Were you able to resolve this query with the given solution or was this something you were able to figure out on your own or do you still need help here? Do let us know.

Thanks!

Sukrity Wadhwa