Create/modify existing API Endpoint to lookup model objects by name, code or id.
Options
scott.smith
Member, ALL USERS, Employee Posts: 5 Expert
The current method to find the system id of a model object (list, module, line item, etc) is to pull the entire list down with a get call and then loop through that response checking each member for the name/code/id that you are looking for.
I would like to see a new endpoint in which we can pass a name or code and get the name, id and code(where applicable) back: For example:
curl --request POST 'https://api.anaplan.com/2/0/workspaces/8a81b0136ee24d0e01700b1ef6e70bfb/models/CAB05B47EE054D2591F27D2150B0B219/files/' --header 'Authorization: AnaplanAuthToken ' --header 'Content-Type: application/json' --header 'Accept: application/json' --data-raw '{
"name": "CreditView.txt"
}
Response would look something like:
{
"id": "113000000022",
"name": "CreditView.txt"
}
Alternately, alter the existing GET call to be able include a filter.
curl --request GET 'https://api.anaplan.com/2/0/workspaces/8a81b0136ee24d0e01700b1ef6e70bfb/models/CAB05B47EE054D2591F27D2150B0B219/files?filter=name eq "CreditView.txt"' --header 'Authorization: AnaplanAuthToken' --header 'Content-Type: application/json'
Response would look the same, something like:
{
"id": "113000000022",
"name": "CreditView.txt"
}
Tagged:
0
Categories
- All Categories
- 2.3K Anaplan Community
- Academy
- Anaplan Talent Builder
- Model Design Course
- The Anaplan Way
- Archive
- 2 Idea exchange
- 62 Enterprise Scale
- 1.1K Extensibility
- 21 Intelligence
- 1.6K Planning & Modeling
- 331 Security
- Community Connections
- Connections
- Experiences
- Groups
- Personas
- Employees
- CS Toolkit
- Customer Care Center
- Forums
- Academy & Training
- Community Feedback & Updates
- Japan
- Anaplan Community Japan
- Anaplan Community Japan Knowledge Base
- HyperCare Japan
- JP-Central
- Support-Japanese
- Partners
- Partner Leadership Council
- Partner Product Council
- 724 Platform
- Anapedia
- App Hub
- Centers Of Excellence
- Extensions
- Planual
- Platform Updates
- 724 User Experience
- Profile Builder
- Resources
- Anaplan Advocates
- Anaplan Live!
- Community
- Community Advancement
- Community Connections
- Partner Program
- The Official Master Anaplanner Program
- Videos
- Welcome to the Anaplan Community!
- Success Central
- Support
- Case Portal Link
- Common Support Questions
- HyperCare Redirect
- Known Issues and Workarounds
- Support test page
- SupportFAQ
- Survey
- 2 Training Day Takeaways