Reference field from a relationship field

Comments

17 comments

  • Hamid

    Hi Zac,
    the calculations fields are not usable in Workflows
    but in a calculation field you can use any field from a related app with @all of name of field

    0
    Comment actions Permalink
  • Zac

    Hamid,
    I was thinking that I would use the Calculations fields to pull in the related references ( Project Manager from Project App, and Billing Date from Project App ) that I needed so I can create the task properly.

    0
    Comment actions Permalink
  • Hamid

    Use one calculation field for each field you want to pull from the related app

    calc1

    @all of Project Manager

    calc2

    @all of Billing date

    0
    Comment actions Permalink
  • Zac

    Hamid,
    I have only been using this for about a week so this is all still a little new.

    When I put in the calculations field @All of project manager I get the error.

    The script returned an unsupported result type.

    I noticed in other question/post people used additional java script for loops etc. Do I need to loop through @all of project manager and reference the project name?

    Thanks for your help on this.

    0
    Comment actions Permalink
  • Hamid

    Try this
    @all of Project Manager.join()

    1
    Comment actions Permalink
  • Zac

    That did bring up the name of the project manager. I think the problem is I can't assign it to the calculations field because the calculation .join() returns a text value not a contact.

    0
    Comment actions Permalink
  • Zac

    I think the same would go for that date.

    Is is possible to embed javascript into a contact field? or date field? This way the date/contact can lookup who the project manager is?

    0
    Comment actions Permalink
  • Hamid

    Yes it a text rtextnvalue. You can not use a contact value in a calculation field

    0
    Comment actions Permalink
  • Hamid

    To a dates fiemanipulafields Use http://moment.js documentation

    0
    Comment actions Permalink
  • Hamid

    http://momentjs.com

    0
    Comment actions Permalink
  • Zac

    So is it basically impossible to create a task assigned to the project manager of another app? Unless you reassign the project manager to this app? Due to the fact the manage workflows needs a contact and calculations can't handle contact data types.

    0
    Comment actions Permalink
  • Hamid

    If the person who create the dellivery item is the same to the project manager you can use «created by» in the workflow to assign the task to the person who created the item

    0
    Comment actions Permalink
  • Rainer Grabowski

    Hi Zac,

    honestly I don't understand what you want to achieve. If you want to have such a task in "Projects"

    Task Title: ( @Project Name + " - Billing" )
    Due Date: Project -> @Billing Date
    Assigned To: Project -> Project Manager

    for which reason you need a calculation field in Deliveries?? I think, you don't need any calculation field for that.

    The projcet manager field in "Projects" should be a contact field, not a text field.
    With Podio "normal" Workflows you can then create a task in "Projects":
    If new item has been created,
    create a task with title @Project Name - Billing,

    assign it to the person in the contact field,
    due date = billing date.

    Or do you want the task been created in Deliveries for each Delivery item? So that if you have 5 deliveries the same task is created 5 times? If so, you could do it with a workaround using Podio Advanced Flows.

    What exactly do you want to achieve with a calculation in Deliveries?

    Rainer

    0
    Comment actions Permalink
  • Zac

    Rainer,
    We have a number of projects going on at any one time so to ease the work for the project managers I wanted to create a task / flag /reminders etc so they project managers know what projects need to be billed for in that billing cycle. I figured if I created a task for each delivery / labor placing etc it would accomplish the task and eliminate the project managers having to search for what needs to be billed for each specific project.

    I have a backup plan if I can't create the tasks which would be to add a category to each delivery which is billed and having a custom view for Bill and filtered by project manager. I just thought the task idea was neat.

    Thanks.

    0
    Comment actions Permalink
  • Tony Barlow

    Hiya and forgive my intrusion. I noticed some references to .join() usage and I have tried using this in a calculation field like this: @Job Title + " - " + @All of Names.join() - but it is coming back with a script syntax error/unexpected token illegal. Both @ fields callups work fine on its own but putting this formula in place didn't. Sorry for going off topic!

    0
    Comment actions Permalink
  • Rainer Grabowski

    Hi Tony,

    that formula seems to be ok. Can you add a link to a screenshot from you calculation field here? Does @all of names.join() pull one name or multiple names?

    0
    Comment actions Permalink
  • Tony Barlow

    HI Rainer, I tried the formula again today so I can get a screen grab for you but it's working! I don't understand this but I am happy now.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk