cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How to pass values for Data Change Type in custom service

ranjank
14-Alexandrite

How to pass values for Data Change Type in custom service

I am trying to use AddPropertyDefinition in a service where I am passing values like "ALWAYS" or "Always", "VALUE" or "value" etc it is showing error as shown:-

 

[message: Execution error in service script [PropertyCreationAndValueUpdation] :: Invalid Data Change Type : [Value]]

 

Could anyone let me the exact way of updating this part

 

Code is as:-

 

var params = {
defaultValue: undefined /* STRING */,
remoteBindingAspects: undefined /* JSON */,
description: undefined /* STRING */,
readOnly: false /* BOOLEAN */,
remote: undefined /* BOOLEAN */,
type: propertyType.toUpperCase() /* BASETYPENAME */,
remotePropertyName: undefined /* STRING */,
timeout: undefined /* INTEGER */,
pushType: undefined /* STRING */,
dataChangeThreshold: undefined /* NUMBER */,
logged: true /* BOOLEAN */,
name: propertyName /* STRING */,
pushThreshold: undefined /* NUMBER */,
dataChangeType: undefined /* STRING */,   ----------> This part is showing error when passing above values.
category: undefined /* STRING */,
persistent: true /* BOOLEAN */,
dataShape: undefined /* DATASHAPENAME */
};

me.AddPropertyDefinition(params);

 

1 ACCEPTED SOLUTION

Accepted Solutions

Capslock:

 

"VALUE"

"ALWAYS"

View solution in original post

2 REPLIES 2

Capslock:

 

"VALUE"

"ALWAYS"

ranjank
14-Alexandrite
(To:CarlesColl)

@CarlesColl 

I don't know what was the issue earlier.

I tried with Capslock earlier but it was not working.

 

Anyways thanks

Top Tags