Get NID from webform value and turn it into entity:node data type

Created on 22 November 2021, over 3 years ago
Updated 16 January 2024, over 1 year ago

I'm not sure if this is where to ask this or if I should ask over in the Rules module issues.

Basically I'm trying to setup a webform for users to submit a node to be looked at by a moderator and when they submit this I want the node to be unpublished. I've setup the webform to get the NID and I was trying to use the Rules Token module to get that field value with the NID in it and use that to unpublish the node.

But whenever I try to add the reaction to unpublish a content item it won't accept the variable created by the Rules Token action.. instead saying "Expected a entity:node data type for context Node but got a any data type instead.". I've tried changing the token used to include :format:raw and :format:value and neither works. I've tried converting the value but that doesn't work either. Any idea what I'm missing?

Thanks.

πŸ’¬ Support request
Status

Fixed

Version

1.2

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States fallenturtle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024