Issue with Inbound SMS Activity | Community
Skip to main content
aashu980324
November 8, 2023
Solved

Issue with Inbound SMS Activity

  • November 8, 2023
  • 1 reply
  • 683 views

We are trying to use "Inbound SMS" activity to query the Incoming SMS table(nms:inSMS). Our requirement is for certain keywords coming in, we need make an external API call for each of the message. In the Javascript I have written the code which makes the API call

But I have few questions with this activity.

1. Whenever I try to edit the query and save the workflow, it throws an error "Unable to find Key values for the element 'Condition' (document with schema ctx) ". Why is this happening?

2. How do I run this activity continously so that it always keeps polling the Incoming SMS table. Is scheduler the only way to do it? 

3. Can this acitivty be used as " Event based" trigger rather than scheduler based?

4. How do I manage this for two different keywords and each of these keywords needs to make two different API calls? Should I create two workflows?

 

Any help is appreciated, thanks in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Manoj_Kumar

Hello @aashu980324 

 

1. Do you have any code in the script section of Inbound SMS activity? If yes, we need to see the code to find a possible issue.

2. Yes, You will have to use the scheduler. 

3. It can be trigger-based, but you will have to listen to the events somehow.

4. You can use the split activity after inBound sms to check the keyword and have two transitions for API calls

 

1 reply

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
November 9, 2023

Hello @aashu980324 

 

1. Do you have any code in the script section of Inbound SMS activity? If yes, we need to see the code to find a possible issue.

2. Yes, You will have to use the scheduler. 

3. It can be trigger-based, but you will have to listen to the events somehow.

4. You can use the split activity after inBound sms to check the keyword and have two transitions for API calls

 

Manoj  | https://themartech.pro