Menu

Portal: setting org ID?

2023-06-27
2023-08-03
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-06-27

    I'm on some customization where I'd need to set the organization to the ID of the org_id of the current user.

    I thought this would work:

                    <action_rule id="contact-to-userrequest" _delta="redefine">
                        <!-- source_oql|source_class is only necessary if there is some copy preset|retrofit -->
                        <source_oql><![CDATA[SELECT Contact AS C WHERE C.id = :current_contact_id]]></source_oql>
                        <presets>
                            <!-- Only set() and copy() are supported for now -->
                            <preset id="1">set(caller_id, $current_contact_id$)</preset>
                            <preset id="2"><![CDATA[set(org_id, $current_contact->org_id$)]]></preset>
                            <preset id="3">set(origin, portal)</preset>
                        </presets>
                        <retrofits/>
                    </action_rule>
    

    But it seems it's not working? (I had it without CDATA before)
    Any way to do it?

    ( Never mind, I think the mistake is in my customization )

     

    Last edit: Jeffrey Bostoen 2023-06-27
  • Pierre Goiffon

    Pierre Goiffon - 2023-08-03

    Hello Jeffrey,
    Sorry just seeing your message.
    I understand this is fixed on your side ? It is working after all ?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.