So I'll try to keep this short and simple. I have a client who wants to use Custom Labels in their buttons so the average user can duplicate and re-use them.
One such label is simply the API name of a custom object, so to use it in the button logic I do something like var = {!$Label.cusLab} and the variable comes out like CustomObject__c.
However, say I wanted info about that object? If I type {!CustomObject__c.Id} it will return the id. You obviously can't do {!{!$Label.cusLab}.Id} because of syntax, but if you type {!$Label.cusLab+'.Id'} it returns the string 'CustomObject__c.Id' instead of actually returning the Id.
Any ideas on how I would use the custom label inside of an expression to return the correct info? I feel like it's possible and it's just a syntax thing I don't know enough about.
Any help would be appreciated. Thanks!