ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Two step Safecracker Workflow problem

April 25, 2011 6:47pm

Subscribe [3]
  • #1 / Apr 25, 2011 6:47pm

    TacomaWeekly

    17 posts

    Okay, I have one I can’t seem to find any hints on.

    I have a two step process I am building, both steps having end users commit entries via safecracker.

    Step 1)  User submits entry to Channel_A
    Step 2)  User submits entry to Channel_B, that has a custom field named Channel_A_entry_id

    The core issue is that at Step 2 I need to know what the entry_id created in Step 1 was.  To further compound this problem, there is a pathway that will allow a guest-user to make these postings.  Because of this it would be possible for two guests to post at the same time, so I can’t just get the one most recent entry from Channel_A.

    Is there a way to pass forward the entry_id of the posting just submitted via safecracker to another template?

  • #2 / Apr 26, 2011 4:52am

    John Henry Donovan

    12339 posts

    TacomaWeekly,

    Is there a way to pass forward the entry_id of the posting just submitted via SC to another template?

    Have look at your return parameter

    return="channel_name/edit/ENTRY_ID"

    Specify a path to redirect the user to after an entry submission. You may use the constants ENTRY_ID and URL_TITLE, which will be replaced with the entry’s entry_id or url_title, respectively. This is a required parameter.

  • #3 / Apr 26, 2011 1:13pm

    TacomaWeekly

    17 posts

    EPIC!

    I had seen that somewhere, however I misunderstood the meaning.  I thought the ENTRY_ID meant for me to manually substitute the value in, not use it as a variable.

    Problem = Solved!  Thanks John!

  • #4 / Apr 26, 2011 4:49pm

    Sue Crocker

    26054 posts

    Glad John was able to help. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases