Get metadata for import action returns the target line items instead of File headers

Options
Vaitesh
Vaitesh Member, ALL USERS, Partner Posts: 5 Occasional Contributor

Hello everyone,

 

We were looking to query the mappings of a file that was being uploaded in the model through the endpoint of get metadata for import action.

 

the link Anaplan Integration API V2 Guide and Reference · Apiary suggests the below statement:

 

" You can use the API to obtain metadata for an import definition for module and list imports using the import ID. This enables you to use mappings on your imports without querying the import file itself. "

 

but the body for the import action of a module displays the line items of the target module, not the headers of the file that was used for uploading data to the module.

endpoint url used  - /workspaces/{workspaceId}/models/{modelId}/imports/{importId}

aslo tried this - /workspaces/{workspaceId}/models/{modelId}/imports/{importId}?showImportDataSource=true

but is returning the same details of target line items not the headers of the file.

 

Anybody tried any alternative approach with respect to the above ask.

 

Thanks in advance for your time and support!

P.S.: it is working fine for the hierarchy load using the file, but shows misinformation for module data load.

 

Regards

Vaitesh

Comments

  • Vaitesh
    Vaitesh Member, ALL USERS, Partner Posts: 5 Occasional Contributor

    Hello @ryan_kohn ,

     

    1. Yes, the import is from the File, below screenshot of the response

    Vaitesh_0-1654172198608.png

    2. It is not a private file and the credentials used for authentication is having WSA access.

     

    3.It is a GET method as the information is only being retrieved no updates to any objects.

     

    Thanks

    Vaitesh