Hi, 

 

Any ideas why the code below is not working? I get an 'Object reference not set to an instance of an object.' here /0/DataService/json/SyncReply/SelectQuery 

I checked that the getUsersInRole function that I wrote is working. It returns an array of Contact Ids.

Thanks in advance,
Jose

{
    request: 'crt.LoadDataRequest',
    handler: async (request, next) => {
        if (request.dataSourceName === 'PageParameters_UsrLookupParameter1_13p73tg_List_DS') {
            var roleId = request.$context.attributes.PageParameters_UsrLookupParameter1_atde2dj?.value;
            var users = await UsrC2CUtilitiesV2.getUsersInRole(roleId);
            const usersFilter = new sdk.FilterGroup();
            await usersFilter.addSchemaColumnInFilterWithParameters(sdk.ComparisonType.Equal, "Id", users);                            
            request.parameters.push({
                type: "filter",
                value: usersFilter
            });
        }
        return await next?.handle(request);
    }
}

Like 0

Like

0 comments
Show all comments

Hello everyone,

 

I hope this message finds you well. I am currently facing a challenge in Creatio and would greatly appreciate your expertise and insights.



I am looking to create product bundles within Creatio, but it seems that there is no direct functionality to do so. I have explored various ideas but haven't been able to find a straightforward solution.

 

I'm reaching out to inquire if anyone has experience in implementing product bundles in Creatio. If so, I would love to hear about the approach you took and any tips or best practices you can share. On the other hand, if you attempted this in the past but encountered obstacles or decided against it, I would be interested to learn about the challenges you faced or the reasons behind your decision.



Your input and advice would be immensely valuable to me, and I'm eager to learn from your experiences.



Thank you in advance for any assistance you can provide.



Best regards,

Paulo Figorelli

Like 0

Like

2 comments

Hello,

Could you please describe in more detail what exactly you want to implement in Creatio?

Malika,

Thanks for replying back.

One of our clients wants to create product packages.


For example, they have shampoo and conditioner, each sold for $10.

 

He wants to create a package that will sell shampoo+conditioner for US$ 18 (10% discount), but if the customer only wants the shampoo, it will cost the full price (US$ 10).

 

Show all comments

When Creating a Campaign from an Event, the Campaign fails to link to the related event

 

See picture

 

Like 0

Like

1 comments

Hello!

Please contact us via email support@creatio.com. We will help you to solve the problem.

Best regards,
Anton

Show all comments

Hello,

 

can we somehow display empty cell if field value is 0 in Classic UI editable detail?

Otherwise it is very difficult for users to find filled values in the detail

Thank you!

Vladimir

Like 3

Like

1 comments

Hello,

 

There is a workaround for this if you don't need to aggregate these metrics. You can create the field as Text and then implement field value validation to accept only decimals. You can find bellow the link to how to implement field value validation. As a result, the field will be empty if not filled in. 

 

https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…

 

Mariam

Show all comments

Hello,

I want to color rows in a list page whose date has passed (Freedom UI).

I tried to add a css file to my list page. I followed this article, but I still have a problem. When I look at the page's inspect, I see that a line has been added with a link to the file I added (
I would appreciate help.

Thanks, Smadar

Like 0

Like

1 comments

Can you give more specifics? Is the CSS not being applied to the page?

As long as the steps in the article are followed it does load the CSS on the page. The CSS itself would determine whether or not it actually applies to any elements.
Ryan

Show all comments

On a form or a list, I would like to display a link to a document stored in the system (the user selects the document manually). The name of the document would appear on the screen and if you click on it, the document will open. I couldn't find a "document link" field type. How can I implement this in Creatio?

 

Best regards,

Tamas

Like 0

Like

1 comments

Create the attachment detail (within the section you want to display document links) as a new section. Then create a new string field and a business process which updates this field each time an attachment is created. Like below:

 

"https://my.creatio.com/0/rest/FileService/GetFile/36262394-3837-46a6-ba…"+[#Read PI Attachment.First item of resulting collection.Id#]

 

The first part is constant for each record with the ID appended on each record created.

 

This will then create the link you need to automatically open the document within the section list.

 

The ID (highlighted in yellow) relates to the specific UId of the object (which you can locate within advanced settings). The ID highlighted in Green is the unique attachment ID which is appended during BP update.

 

Show all comments

Hi all,

I want to remove the drag drop feature in the attachment detail for a particular section in Freedom UI.

Could you please help me with this?



Like 1

Like

1 comments

To remove this feature in a particular section, add '"droppable": false' code in the values part of the FileList viewConfigDiff element in that section formpage.



Show all comments

Hello,

I'm attempting to access a customer feedback page, but I'm unable to do so due to the error message stating "Endpoint not found". Could you please assist me with resolving this issue?

 

 

Like 0

Like

2 comments

Hello,

 

Please make sure that the system setting 'Website URL' is populated correctly: https://yoursite.domain.com/0

Bogdan,

Thank you for your message. Unfortunately, the way you provided didn't work. :(

Show all comments

Hi, I was testing the case section and could not see attachements while logged in as a service agent, but when I tried as an admin I could see it.

 

Any idea about what I should change in order to make it available to my agents?

 

Best Regards

Like 0

Like

2 comments

Hello,



The issue is already fixed in version 8.1.2, so we recommend to update your application.

 

If you require the fix for 8.1.1 please contact support team on this matter.

Bogdan,

Thank you, We are currently on 8.1.1.3635.

I will plan an update.

Show all comments

Hi!

I need a custom button that will change value in a recaord and then save this record. I've tried it on a OpportunitySectionV2 with this code

 

define("OpportunitySectionV2", [], function() {
	return {
		entitySchemaName: "Opportunity",
		details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
		diff: /**SCHEMA_DIFF*/[ 
            {
                "operation": "insert",
                "parentName": "ActionButtonsContainer",
                "propertyName": "items",
                "name": "MainContactSectionButton",
                "values": {
                    itemType: Terrasoft.ViewItemType.BUTTON,
                    caption: { bindTo: "Resources.Strings.OpenPrimaryContactButtonCaption" },
                    click: { bindTo: "onOpenPrimaryContactClick" },
                    "layout": {
                        "column": 1,
                        "row": 6,
                        "colSpan": 1
                    }
                }
            }]/**SCHEMA_DIFF*/,
		methods: {
			prepareResponseCollectionItem: function(item) {
				this.callParent(arguments);
         		if (item.get("MgtImportantFlg") === false){
					item.customStyle = Ext.apply({}, {
					  "background-color": "#cc081c",
					  "font-family": "cursive"
					}, item.customStyle);		  		
		  		}
			},
			onOpenPrimaryContactClick: function(){
				var activeRow = this.get("ActiveRow");
				var bFlag = this.get("GridData").get(activeRow).get("MgtImportantFlg");
					if(bFlag){
						this.get("GridData").get(activeRow).set("MgtImportantFlg",false);
						this.save();
					}
					else{
						this.get("GridData").get(activeRow).set("MgtImportantFlg",true);
						this.save();
					}
			}
		}
	};
});

it change the value in my field but didn`t save it, so after reload shows old value.

Could anyone help me how should i change code for my purposes?

Like 0

Like

1 comments
Best reply

Hello,

In the section module, it is better to use an UpdateQuery class to change the value of the records. You can find the example here.

Hello,

In the section module, it is better to use an UpdateQuery class to change the value of the records. You can find the example here.

Show all comments