Closed (won't fix)
Project:
Salesforce Suite
Version:
7.x-3.x-dev
Component:
salesforce_mapping.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2013 at 17:46 UTC
Updated:
13 Dec 2016 at 03:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kostajh commentedComment #2
kostajh commentedComment #3
levelos commented@ceardach, can you clarify some use cases where this is needed? Thanks.
Comment #4
levelos commentedComment #5
mariacha1 commentedI'm going to say there wasn't enough interest in this as a feature to continue to consider it.
Comment #6
jimafisk commentedI think this is exactly what I need for: https://www.drupal.org/node/2061623#comment-11821386
The issue for me is I'm setting a value at the level of the salesforce_mapping, but have no way to retrieve that value when implementing the control for objects created by that mapping.
Comment #7
jimafisk commentedTo follow up here, I tested markisatacomputer's patch and it works as intended: it adds a column to the salesforce_mapping_object table called salesforce_mapping_id and populates the correct mapping_id without error. I applied this to 7.x-3.2 so I needed to re-roll the patch which I've included here in case it's helpful to someone.
This didn't help my particular use case because I was trying to query the salesforce_mapping_object table using $sf_object['Id'] to get the new salesforce_mapping_id value (in order to use it in another query on the salesforce_mapping table, where I was storing some admin settings). However, I was trying to query the record before it was actually saved, which of course can't work. Ultimately I ended up using
hook_salesforce_pull_mapping_object_alter()to modify $sf_object to include the mapping_id.