Business Process
callback
Client-side
7.13_()
sales_enterprise

Hi Community,

I want to call a process on the 
client side and when it ends, for example, update certain values ​​of the page. 
Is it possible using the callback? 
The callback works but the page with the caption of loading remains. I Have this example:

var someFunction = function (a) { 

                                    

                                    this.loadSchemaCaptionByName("UsrApproveBSRankedCompare", function(caption) {

                                                this._showSuccessfullyRunProcessPopup("The process has been completed");

                                            }, this);

                                    

                                };

                                this.executeProcess(args , someFunction)

 

executeProcess: function(sysProcessName, callback) {

                ProcessModuleUtilities.responseCallback = callback;

                ProcessModuleUtilities.executeProcess(sysProcessName)

            }    

 

 

Thank you!

regards

Like 0

Like

2 comments

Dear Uriel,

In order to complete your task you need to split it into two parts:

1. Launch the business process call from client side. Please see the following article and link for more details:

https://community.bpmonline.com/questions/trigger-business-process-clie…

https://academy.bpmonline.com/documents/technic-sdk/7-13/process-launch…

2. After the process executes, it needs to send the signal to the client side to proceed further with the logic. The example of such logic you can find in the following thread of our Community:

https://community.bpmonline.com/questions/refresh-page-fields-after-pro…

Regards,

Anastasia

 

Show all comments
7.13_()
sales_enterprise

Hello,

I have an enquiry regarding parsing a collection of records. The idea is I want to read a number of records "Read Data" (a collection of them) and want to pass their email addresses and Names into the "Send To" field of the "Send Email" process element and their name into the merging "Email body content". 

In what way would I be able to do that?

 

Thank you

Like 1

Like

1 comments

Hello Thanos,



Unfortunately, it`s not possible to send email to many participants using "Send email" process element. You can achieve via using script task. The idea is to read collection of contacts via Read data process element and then to send email to each contact from the collection using Script task.



FYI: To read collection of elements that "Read data" retrieved from the database use the following code: 

var entities = Get<ICompositeObjectList<ICompositeObject>("ReadDataUserTask1.ResultCompositeObjectList");

The example of implementation of script task that sends email you can find in "SendEmailToCaseContactProcess", "SendMailScriptTask" element. 

Also, check the link below:

https://community.bpmonline.com/questions/email-attachments-business-pr…



Best regards,

Alex

Show all comments
7.13_()
sales_enterprise

I'm not sure if I'm just doing something wrong with formatting, etc., or if this simply won't work using the standard Word Printables functionality, but I am trying to create a document (as a PDF) that makes internal decisions using the Word IF statements and information fed to the printable via the printables mergefields.

 

For example, I have one value that I want to have calculated based upon the DownPayment mergefield.  If the DownPayment is greater than a certain amount, additional language is added to the document  (i.e. {IF {MERGEFIELD <>}>=10000,"Amount shall be wired directly to...",""}   This works in the document before making it a printable, but once I make it a printable this functionality no longer works.

Thoughts?

Like 0

Like

2 comments

Yes. That's how it works smiley The report generator will be modified in the further versions. 

There are 2 options on how to handle the situation now:

1. You can create a new field on the related page and calculate it with a business process before creating the printable. 

2. You can create a new view in the database. The view will contain all fields with the calculations. Then create a new object based on the view and use the object for the printable. 

https://community.bpmonline.com/questions/bpm-75-sales

 

 

Eugene Podkovka, rhis still is not working in the nee versions. im trying to do a if condition as well

Show all comments
7.13_()
sales_enterprise

Hi,

I'm getting an error while trying to accomplish one of the exercises of the first Admin class.

Repro Steps:

1) Create a brand new trial instance in the following URL:

https://www.bpmonline.com/trial?product=en-sales-ent-marketing-service-ent

2) Once the trial is created and you are logged in, go to Contacts and select a Contact.

3) Menu "VIEW > Open section wizard".

4) Click on EDIT PAGE

5) Drag the "Birth date" field into the CONTACT INFO tab.

6) Click on the Page Settings icon.

7) Set a valid name (e.g. "UsrContactPageV2") and click SAVE.

8) Click on the SECTION WIZARD button to go back.

9) Click SAVE

10) After a while, the following error is displayed:

Unable to save schema. Name: UsrContactPageV2. Caption: Display schema - Contact card. Error: ObjectIsReadOnlyException. Unable to save changes for item "UsrContactPageV2". It is either created by third-party publisher or installed from the file archive. Contact system administrator.

I tried similar steps with an Account and I got the same error. I created a brand new trial just to make sure that I didn't break anything.

Any help would be appreciated.

Regards,

     Marcos

Like 0

Like

3 comments

Dear Marcos,

Hope you are doing great today. 

The reason for the issue might be connected to the system setting 'Current package'. You might have different package that is set as a default. Try to find it in the system settings and make sure the default value is - Custom https://prnt.sc/ltl1ul. If it doesn't help - please send your request at support@bpmonline.com for further investigation in your particular environment.

Best regards,

Dean

Hi Dean,

The Current Package is "Custom". The trial environment has not been modified, so everything is by default.

I'll send an email to support. Thank you.

Regards,

Marcos

Dear Marcos,

Thank you for the reply. Our support team will be glad to help you out. 

Have a wonderful day ahead.

Best regards,

Dean

Show all comments

Hi, 

I have developed an editable List Grid Detail (derived from BaseGridDetailV2). The detail is added to OrderProductPage.

The entity schema (table) for this detail has the following columns:

  - OrderProductId (Lookup field from OrderProduct table)

  - AssetId (Lookup field from custom asset table)

Assets are linked to Account. The detail is rendered properly however I want to filter the Asset field in the detail based on the opened Order's Account field (Detail screenshot attached). Currently it lists, all the records from the Asset table

Any Ideas on how this can be achieved?

Thank you

 

File attachments
Like 0

Like

3 comments

Hello,

You can add filtering rules on the edit page for the detail and it will be honored in the detail editable list. Edit the page for the detail and add the filtering rule there.

Ryan

How can we do this in FreedomUI? I'm not able to filter lookups shown when inline editing in a grid.

Hi Andres Arrigonni,

 

You can read about the lookup filtering setup here: https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…

 

Have a great day!

Show all comments

Hi, 

What is the difference between Amount and Primary Amount fields in the following tables: 

 - Order

 - OrderProduct

There are some other fields with primary counterparts like (Total, TaxAmount) in OrderProduct and InvoiceProduct tables. I have seen the orders section documentation on Academy but only the "Amount" field is documented. Similarly, what is the rationale of having Quantity and BaseQuantity fields in OrderProduct table?

In addition, is there any Use Case where these fields have a different value. Like Amount and Primary Amount fields with a different value.

Thank you,

Like 0

Like

1 comments

Dear Hatim, 

Regarding to the Primary Amount there is no such column in the base configuration, could you please specify the column name?

Regarding to the Base quantity: when editing product you can add units of measure that indicate the number of pieces in singular product transaction (pieces, packages, etc.) When choosing anything besides pieces you specify the amount of pieces (when choosing pieces the correspondence to the Quantity is 1 to 1). See the first screenshot in attachments. After that when you add product on the detail you specify in which units it would be purchase (See the 2nd screenshot). After adding product Base quantity is updated following the equation Quantity * Pieces in unit and Total is calculated as Base quantity * price (See the 3rd screenshot). When the Quantity is updated the Base quantity gets updated and the Total is recalculated.

https://prnt.sc/lz06nz

https://prnt.sc/lz06y7

https://prnt.sc/lz0735

Here is the example, lets say that I want to ship bottles of water and i want to ship them in packages of 6 bottles. In this case i add unit measure of package in my product and set the number of units in a package to 6. When I add this product on a detail and add packages as unit of measure if i choose to ship 1000 packages the quantity would be 1000, the Base Quantity, however, would be 6000 as I ship 6*1000 bottles in total. The total cost would be calculated based on the Base quantity amount. 



Best regards,

Dennis

Show all comments
case
Business Process
Numbering
7.12_()
sales_enterprise

Hello Community! I need create a case for each collection recived in a web service call and i can make it with a script task but the problem is the number of case. How can generate a ordinal number for each record in the loop?

Regards,

Like 0

Like

1 comments

If you could do it as a separate task in the process, you could use a User Task with "Generate ordinal number" to populate that. If you wanted to do it in the loop in your script task code, you could read the system settings for CaseCodeMask (which contains the prefix string) and CaseLastNumber (which contains the last number used). Then increment the value for each case and then write back the last value used to the CaseLastNumber setting.

FYI this is how the UserTask does this: https://github.com/CustomerFX/BpmOnlineBase/blob/9a8a337a470d914a6ec00f…

Show all comments
Import
large data
excel
7.12_()
sales_enterprise

Hi all,

I'm starting a contract project helping to convert an automated workflow-based system to BPM Online. Our Database is fully 3rd normal form with over 60 tables. In the grand scheme of things, it's a pretty small database, however for import into BPM Online, it seems to be pushing the limits when it comes to importing data.

BPM Online will be substantially customized with forms and workflow. 

At this point, I'm struggling with two different issues:

1. I've been told that Excel spreadsheets are the only way to import legacy data, and each spreadsheet can only be a maximum of 10 MB. Some of our tables have almost a million rows each and will be 20+ spreadsheets each. That means we'll have more than a hundred separate import runs.

2. A test loading one spreadsheet of one of our tables with 60 columns took an hour. It appears that we're looking at over 100 hours runtime, just to load our data.

This seems burdensome for import into an enterprise class appplication like BPM Online. Is there another approach?

BTW, I'm not sure which product and version we'll be on. I marked Enterprise.

Thanks in advance to all,

Bill

Like 1

Like

1 comments

Dear Bill,

You can create a webservice which will transfer data from your system to BPM'online. It will still impact performance of your system but it will be more flexible for your business task. I have picked a couple of articles from our academy that should help you to implement this functionality:

https://academy.bpmonline.com/documents/technic-sdk/7-13/integration-bp…

https://academy.bpmonline.com/documents/technic-sdk/7-12/web-services-c…

https://academy.bpmonline.com/documents/technic-sdk/7-13/odata

https://academy.bpmonline.com/documents/technic-bpms/7-13/studying-web-…

You may also refer to sub articles in the "See also" section below the main article.



Best regards,

Angela

Show all comments
ProtectedExcel
ExcelReportBuilder
7.12
sales_enterprise

Hi. 

how can I use password protected excel for Template in Excel Report Builder ?

 

It showing below error when I generate the report.

 

 

Like 0

Like

1 comments

Dear Visitor,

Most likely it is not possible to use password protected excel file as a template in the application. I would suggest you to contact the developer of this extension by email for more details - bpmonlinelabs@bpmonline.com

Best regards,

Dean

Show all comments
7.12
sales_enterprise

Hello Community!

 

I´m not available to replace the ProductSelectionViewModel. I need add a new column with the Product.Category.

Just following the post in community: https://community.bpmonline.com/questions/adding-product-image-product-selection-page

 

Any ideas?

 

Like 0

Like

1 comments

Try set System Setting with code 'Feature-ValidateConfigurationOnChange' disabled

Show all comments