{
"name" : "AwesomeApp Decision Response Bulk Import",
"updateRule" : "always",
"fields" : {
"emailAddress" : "{{Contact.Field(C_EmailAddress)}}"
},
"identifierFieldName" : "emailAddress",
"syncActions" : [
0 : {
"destination" : "{{DecisionInstance(123)}}",
"action" : "setStatus",
"status" : "yes"
}
],
"isSyncTriggeredOnImport" : false,
"isUpdatingMultipleMatchedRecords" : false,
"uri" : "/contacts/imports/6",
"createdBy" : "DocsExample",
"createdAt" : "2014-03-06T13:59:00.6600046Z",
"updatedBy" : "DocsExample",
"updatedAt" : "2014-03-06T13:59:00.6600046Z"
} I created 3 Tables I have fields as a One to One I have synaction as on to many. I created a Structure that mimics the structure above. I created my Structure with last all the attribute fields and 1 of Record type field the other of record list type syncAction. Problem is the Output Query keeps giving me errors about data missmatch. I assume that is because OS mapps simply by the Column ordering from my testing. What I am worried is that I can not Populate fields in my list of Fields and my List of syncAction objects because they are one to many relationships. I went over the Advanced Query Tutorial but it uses only simple db access it does not address well how to get data into a structure that is more complex. I am very confused why is there no way to map query to a Structure, I would have thought you would have a build in ORM of some sore? Or was Outsystems never intended to be used much with objects oriented in mind. I am trying like hell just to populate a simple object with a few attributes. All I want to do is build a simple object illustrated above. It was easy to build the entity but it has ID fields that can not be used in the JSON object. So I need to use a Structure but now I can not not populate that structure with a query. My Query SELECT {BULKImportQueue}.[name], {BULKImportQueue}.[updateRule], {BULKImportQueue}.[identifierFieldName], {BULKImportQueue}.[isSyncTriggeredOnImport], {BULKImportQueue}.[isUpdatingMultipleMatchedRec], {BULKImportQueue}.[uri], {BULKImportQueue}.[createdBy], {BULKImportQueue}.[createAt], {BULKImportQueue}.[updatedBy], {BULKImportQueue}.[updatedAt], {field}.[ContactID], {field}.[EmailAddress], {syncAction}.[destination], {syncAction}.[action], {syncAction}.[status] FROM (({BULKImportQueue} Inner JOIN {syncAction} ON ({syncAction}.[BULKImportQueueId] = {BULKImportQueue}.[Id])) Left JOIN {field} ON ({field}.[Id] = {BULKImportQueue}.[Id])) Im really upset I got this fare and got stuck on something so simple as mapping???? Why would you allow advanced queries and provide no mapping? I must be missing something? To say I am upset is a mild undertatement. This tool is almost unusable with its inablity to Abstract between the Database and Objects. Please tell me I am missing something. I was loving this tool so much until that brick wall. I am so convinced I am missing somethign because how could anyone use OS for anything remotely serious if you can not easily create Data Structures map data betwewen those structures and Entities? Scott