Create contact in mailing list failing in Microsoft Flow - Issue with parameter: directoryId | XM Community
Solved

Create contact in mailing list failing in Microsoft Flow - Issue with parameter: directoryId

  • 21 March 2024
  • 2 replies
  • 18 views

Badge +1

Hey Team,

First time poster here.

I have been getting an error while trying to run a MS Flow using HTTP - Post to upload sample data to survey.

I can get it to work within postman so the credential side of things seems to be working. I’m the admin / end user of the platform as well so there should be no access limitations from my understanding as I have another flow running that saves the survey response data as a CSV.

 

The query I’m running is:


The body of the error is below:
 

{

  "meta": {

    "httpStatus": "400 - Bad Request",

    "error": {

      "errorMessage": "Issue with parameter: directoryId, please fix and try again. Reason: Invalid TA directoryId.",

      "errorCode": "TA_IPL"

    },

    "requestId": "74a2b5ae-****-****-****-***d83515b11"

  }

}

 

I’m wondering if potentially I’m missing anything else in the headers or query to run this call?

I have also tried the ID’s outside of the variables, screenshot is showing them in the variables for privacy reason.

icon

Best answer by Adam Beattie 24 March 2024, 22:06

View original

2 replies

Userlevel 7
Badge +21

Shouldn't there be /v3/ before directories?

https://api.qualtrics.com/af95194dd116e-list-contacts-in-mailing-list

Badge +1

@ahmedA Yeah there is the /V3/ in the  path, probably cant see it cause of the blur.

I have actually resolved this myself as per below:

MS Flows dont send data correctly to Qualtrics via the query. It was as sinple as just puting all the query strings into the body of the work or directly into the URI if it was a ID of some sort.

Leave a Reply