How to access user / custom field through API? I'm using OData/WCF data access

 

Like 0

Like

6 comments

Dear Lj,

Please see this academy article which describes how to work with fields using OData https://academy.bpmonline.com/documents/technic-sdk/7-13/working-bpmonl…. This article also contain examples that can be used.

Best regards,

Oscar

This shows how to access standard fields and it works ok, but I've added custom fields (user fields) on Accounts, there is no showcase how to do that? Or am I missing something?

Hello Lj, 



You should work with custom fields that you have added to Account object in same way like you do it with standard fields.



Best regards,

Alex

Alex_Tim,

then there is some step that I'm not doing - WSDL generated from my instance does not contain my custom field

Lj,

Please make sure that you compiled the system after making changes to Account object.



Best regards,

Alex

 

Alex_Tim,

Thanks! That was the solution!

Show all comments

Hi community!

How are you?

Any example for call a API Rest from c# script in a businessProcess?

 

I have a list of processes to call from a detail, one of them must call an API and process the response but I can not use the "Call Web service" element because the request needs a json structure with many nests and I can not complete it in any other way that is not a script, any suggestions?

King Regards,

 

Ezequiel

Like 0

Like

1 comments



Dear Ezequiel,

Configuring the method for "Call web service" business process parameter please use quick setup:

In this case, for example, if you provide the JSON with a nested element or even with a nested array:

The system will automatically configure correct JSON paths:

Afterward, choosing this method in "Call web service" business process parameter, you will be able to fill in any nested parameter:

The only thing that may be uncomfortable for now is that for the nested array you can fill only the first element.

In case you need to fill a bunch of the array elements please try to use any synchronous C# methods in scrip-task instead, for example, the first answer in this topic may work for you: https://stackoverflow.com/questions/9145667/how-to-post-json-to-a-server-using-c

Regards,

Anastasia

Show all comments

I use the OData to extract the data. I need to get cases with the specific status from the CaseCollection. To do this I use the following Http-request:

https://company.bpmonline.com/0/ServiceModel/EntityDataService.svc/Case… eq guid'7e9f1204-f46b-1410-fb9a-0050ba5d6c38'.

But I recieve the "404 ERROR

1

Элемент коллекции с именем StatusId не найден " (The element  StatusId is not found").



But if I do https://company.bpmonline.com/0/ServiceModel/EntityDataService.svc/Case…;

it responses with 200 OK.



How to retrieve cases with the specific StatusId from CaseCollection? 

Like 0

Like

1 comments

Hello Timur,



The Status column in the Case table is the foreign key for CaseStatus table. Therefore, the correct syntax is the next: [Name_of_joinable_table / Name_of_column_for_linking_of_joinable_table].

In your example it will be: https://ticketland.bpmonline.com/0/ServiceModel/EntityDataService.svc/C… eq guid'7e9f1204-f46b-1410-fb9a-0050ba5d6c38'.

Show all comments

Hello, 

We have an API that we are trying to grab information from and show the information on a detail on the edit page. We are already the API is working and we are getting a response, however we are not sure how to now display the data on the detail. 

(We are using a detail because on the edit page we are grabbing a new values and passing them through parameters for a query done on the other server getting the API call.) 

Do you have any thought on this? We looked into virtual columns/tables but were unsuccessful.  

Like 0

Like

1 comments

Hello Philip,

So, you have a REST-service and you are looking for a way to display the response from it on some detail on the edit page. Do I understand you correctly?

The best way to achieve this goal is create a business process. Please, take a look on the [Call web service] process element.

You can find all needed information and examples on our academy web-site - https://academy.bpmonline.com/documents/technic-bpms/7-12/call-web-serv…

Also, you will find an example of setting up web service integration following this link - https://academy.bpmonline.com/documents/technic-bpms/7-12/calling-web-s…

Show all comments

I was wondering if there are working projects of the different public integration methods out there in the community before I reinvent the wheel; besides what is in the development manual, like on GitHub or on this site. I'm looking for actual Visual Studio projects or solutions; boilerplate if you will.  I'm only interested in integration, not BPM customization.  

Second question, where do you find the latest Terrasoft assemblies, if you are working with the cloud version only, not on premise. 

Thanks everyone.

Like 1

Like

1 comments

The project in the article by the link below is working properly. I tested it last month.

https://academy.bpmonline.com/documents/technic-sdk/7-11/working-bpmonl…

Additionally, please check how to track the integration with fiddler. This will help you a lot.

https://academy.bpmonline.com/documents/technic-sdk/7-11/executing-odat…

If you need bpm'online on-site, please email to support@bpmonline.com 

Please note that you will not be able to open bpm'online solutinon in VS, build it and run. Bpm'online is not OpenSource. However, on-side installation allows attaching visual studio and debugging. 

Show all comments

Has anyone been able to use integration SaaS solutions such as Zapier or MuleSoft with bmp'online?  I realize the bmp'online is RESTful and may require some additional effort.  I am mostly focused on a one-way sync to create leads.   Hoping to find a way to hit the DataServices side of bmp'online.

Like 0

Like

1 comments

Dear Stephen,

We already have the suggestion to add the out-of-the-box integration with the services registered and passed to the appropriate team. It will be taken into consideration for the further releases. 

At the moment the integration can be created via OData/DataService in case the mentioned services have the open API. 

Lisa

Show all comments

Hi,

Our employee data are available in Oracle database and we want to integrate the employee details to our environment. Every day the data should be synchronized and if any new user is added/modified, it should be updated to our environment post synchronization. How can I integrate Oracle with BPM'Online and where can I find any documents/link related to it? 

Thanks,

Anupama

File attachments

Like

2 comments

 

Dear Anupama,

Please find all available options to integrate with bpm'online in the following article:

https://academy.bpmonline.com/documents/technic-sdk/7-8/recommended-int…

Hence, you can use OData protocol, which is a universal for integrations. Also, you can create your own web service in bpm'online using C# and send external request to your side. Please see instruction on how to create your own web service:

https://academy.bpmonline.com/documents/technic-sdk/7-8/how-create-own-…

Regards,

Anastasia

 

 

Thanks Anastasia for sharing the links. 

 

Show all comments

I have a few questions about the BPM Data Services.

  1. ​Can I submit CRUD requests in JSON format as HTTP Requests - PUT/GET?
  2. Where can I find the API reference for Rest methods, functions/ syntax?
  3. Any addtional guides or code examples out there, beside the BPM developers guide?
  4. Is there access to REST API documentation, self documenting url maybe; similar to what swagger does? or is everything WSDL/XSD, based?

Thanks for any insight.  

 

John

 

File attachments

Like

2 comments

You can find the CRUD requests example in the atteched file. The only two things that the manual doesn't cover are CSRF token (you will receive it in the login request response and you will need to add it to all of the next requests). Please check how I add the sessionid key. You need to add the CSRF id in the same way. Besides, you can avoid using the sessionid cookie if you use the forceusesession key in the header of all of the requests.

odatawebhttprequestsupd.rar

ForceUseSession: true

 

One more thing. Please note that you need to add the CSRD key both into the header of all of the requests and to the cookie of all of the requests.

https://academy.bpmonline.com/documents/technic-sdk/7-10/protection-csr…

 

Show all comments

Hi,

I am looking for solution how to fetch by API contacts list sorted by ModifiedOn field in DESC order. I try to do such request:
POST https://010107-crm-bundle.bpmonline.com/0/dataservice/json/reply/SelectQ...

{
    "RootSchemaName":"Contact",
    "OperationType":"0",
    "Columns":{
        "Items":{
            "Name":{
                "OrderDirection":"DESC",
                "OrderPosition":"ModifiedOn",
            }
        }
    },
    "AllColumns":true
}

But sort seems not to be applied. Thanks in advance for any help here.
Best,
Lukas

File attachments

Like

1 comments

You need to use OData.

https://academy.bpmonline.com/documents/technic-sdk/7-10/working-bpmonl…

The request URL will look like 

string requestUri = serverUri + "ContactCollection?$orderby=Name";

Please note that it's not ok to select all of the contacts via API. If you have a lot of contacts, the request will take huge amount of time. I recommend to use a filtration and select only the data that you need.

string requestUri = serverUri + "ContactCollection?$filter = Id eq guid'" + contactId + "'";
Show all comments