# Problem to access query with Rest Ful Api

**URL:** <https://community.ofelia.com/t/problem-to-access-query-with-rest-ful-api/7125>\
**Category:** Q&A\
**Created:** [16 March 2016 17:37 UTC](https://community.ofelia.com/t/problem-to-access-query-with-rest-ful-api/7125 "2016-03-16T17:37:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel902207](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@gabriel902207](https://community.ofelia.com/u/gabriel902207)\
**Post date:** [16 March 2016 17:37 UTC](https://community.ofelia.com/t/problem-to-access-query-with-rest-ful-api/7125/1 "2016-03-16T17:37:01Z")

</div>

Hi everyone.

I am having a problem to access findby methods defines into BDM, when I want to invoke in “Ui Designer”. If I define this variable with this external api source like this:  
“…/API/bdm/businessData/com.puce.model.Empresa?q=find&p=0&c=20”  
dont have any problem, but when I want to use find methods where I need to pass some varible like this:  
“…/API/bdm/businessData/com.puce.model.Empresa?q=findByIdbonitagrupo&p=0&c=20&f=15” where f=15 exist into the database.

I don’t know if it is a sintax problem or another thing.

![image]()

Best Regards  
Gabriel M.

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [16 March 2016 19:15 UTC](https://community.ofelia.com/t/problem-to-access-query-with-rest-ful-api/7125/2 "2016-03-16T19:15:29Z")

</div>

You need something like this:

/API/bdm/businessData/com.company.model.Employee?q=findEmployeeByFirstNameAndLastName&p=0&c=10&f=firstName=John&f=lastName=Doe

so in your example

…/API/bdm/businessData/com.puce.model.Empresa?q=findByIdbonitagrupo&p=0&c=20&f=15

change &f=15 to &f=iD=15

Where iD is the real name of the parameter…(what your name is)

See here:

[http://documentation.bonitasoft.com/bdm-api-0](http://documentation.bonitasoft.com/bdm-api-0)

under businessDataQuery

regards  
Seán

_PS: If this reply answers your question, please mark a resolved._

---

<div class="post-metadata">

**Author:** ![gabriel902207](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@gabriel902207](https://community.ofelia.com/u/gabriel902207)\
**Post date:** [17 March 2016 22:16 UTC](https://community.ofelia.com/t/problem-to-access-query-with-rest-ful-api/7125/3 "2016-03-17T22:16:54Z")

</div>

Thanks a lot. Its work =D =D =D
