Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.
Hallo,
I'm following the course Building Custom Integrations for ThingWorx Navigate | Integration Tier - The Resource - Making Calls to Integration Hub Services. And always get errors
var filter = '{"filters":{"fieldName":"Number","type":"EQ","value":"' + Number + '"}}';
var params = { /* INFOTABLE */
resources: 'WindchillDemoPartResourceProvider' /* INFOTABLE */,
serviceName: 'Get' /* STRING */,
params:{
dataShape: {
fieldDefinitions: {
dataShapeName: {
name: "dataShapeName",
baseType: "STRING"
},
query: {
name: "query",
baseType: "QUERY"
},
extraParams: {
name: "extraParams",
baseType: "JSON"
},
dataShape: {
name: "dataShape",
baseType: "INFOTABLE"
}
}
},
rows: [{
dataShapeName: DataShape,
query: filter,
extraParams: undefined,
dataShape: undefined
}]
}
};
// result: INFOTABLE dataShape: ""
var result = Things["PTC.Resource.ResourceManager"].CallServiceOnProvider(params);
Any Suggestion ?
Please attach the Script Error log, and I will see if I can identify the issue.
2021-04-06 06:11:17.688+0000 [L: ERROR] [O: S.c.q.l.c.Logger] [I: DemoUtilityThing] [U: Administrator] [S: ] [P: ] [T: http-nio-8080-exec-3] Error in: DemoUtilityThing.GetPartByNumber javascript service
at GetPartByNumber:37
That didn't help. I think you will need to attach the complete log file.