Skip to main content
15 events
when toggle format what by license comment
Jan 31, 2023 at 4:21 answer added Marina Guimaraes Soares timeline score: 0
Jun 6, 2021 at 1:01 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Nov 10, 2020 at 14:58 answer added dacology timeline score: 2
Jan 8, 2020 at 19:09 comment added Richard @sfdcfox managed to get it working
Jan 7, 2020 at 21:37 comment added Richard @sfdcfox updated the above code. I keep getting the following error 'Method does not exist or incorrect signature: void get(String) from the type List<Object>'
Jan 7, 2020 at 21:36 history edited Richard CC BY-SA 4.0
Added AccountId query to existing code
Jan 5, 2020 at 15:12 comment added sfdcfox You need a single object from the list to use the get method. You'd want to get the AccountId from the Order that you apparently queried. Could you edit your question to include the latest revision of your code?
Jan 3, 2020 at 22:40 comment added Richard @sfdcfox got the id but am having trouble pulling it from the List 'account_id: (Order:{AccountId=0018A00000KvRm8QAF, Id=8018A0000002fIpQAI})' I've tried using 'get', for example ' List<Object> order_account_id = (List<Object>)account_id.get('AccountId');' and continue getting errors such as 'Method does not exist or incorrect signature: void get(String) from the type List<Object>' What method should I use to extract the value? Am I going about this the wrong way?
Jan 3, 2020 at 21:39 comment added sfdcfox Yes, that would be an acceptable account to attach the asset to.
Jan 3, 2020 at 21:34 comment added Richard @sfdcfox can you give me an example? Would I be getting the 'accountId' from the 'order' sObject? What would be the best practice for this?
Jan 3, 2020 at 0:58 comment added sfdcfox You'll need to know which account or contact the asset belongs to. This means you'll need to either query for an account or contact (or both), or create new records using some type of information from the payload.
Jan 3, 2020 at 0:50 history edited Richard CC BY-SA 4.0
deleted 14 characters in body
Jan 3, 2020 at 0:50 history undeleted Richard
Jan 3, 2020 at 0:44 history deleted Richard via Vote
Jan 3, 2020 at 0:43 history asked Richard CC BY-SA 4.0