I’ve got a goal setup on the CRM and got the Integration and Call Name from it. Then, using the PHP SDK, I’ve created a contact (this worked fine) and then tried to achieve the goal using this code:
This is not an error. This is a successful call response. The message in msg simply would indicate that nothing is tied to the goal that enters them into anything but the goal triggered successfully. Can you take a snapshot of the goal in the campaign and post it?
Which as you can see from the screenshot above matches the goal parameters. The contact ID is definitely valid (I’m creating it before making the call, and I’ve checked it’s non-null and that the ID matches an actual contact).
Move the API Goal out of that sequence, and connect it to test sequence. The Sequence can either be Tagging the Contact, or sending an Email, etc. Then run your API Script to see it works.
If it does work, then you know its okay, then the question is what is that Decision Diamond doing?
If it fails to work, then send a picture of what the API Configuration is in the Campaign.
Yeah, I think @Pav has the right direction here. The reason for your message (success but no “goal acheived”) is because you’re moving into a decision diamond. That isn’t achieving anything directly but rather in-directly. If you run the test that pav suggests that should confirm it. Then you can run the goal with confidence regardless of it leading to a decision diamond.