When using record\count, I can't seem to find the correct iteration of createdBy to return a result to the record\Count. We would like to be able to create some statistics about users submitting leads (in this example, by day).
In the formula sandbox, i select a lead and run:
and I get a return of 12. If I expand that to the createdBy field, I can't get it to give a result of anything other than 0. e.g.:
I have tried [ 'createdby.Name=', createdBy.Name ] but it throws a Server 500 error. The traditional methods of fieldId or fieldName (createdById or createdByName) also don't seem to work in this context.
Is there a way to use a User in this regard in formulas? The formula script reference didn't seem to bring Users up as a special case anywhere that I saw at https://docs.espocrm.com/administrat...ula-functions/
In the formula sandbox, i select a lead and run:
Code:
output\printLine( record\count ('Lead', 'biddate=', biddate) );
Code:
output\printLine( record\count ('Lead', 'biddate=', biddate, 'createdBy=', createdBy) );
Is there a way to use a User in this regard in formulas? The formula script reference didn't seem to bring Users up as a special case anywhere that I saw at https://docs.espocrm.com/administrat...ula-functions/
Comment