icoxfog417 / pykintone

Python library to access kintone
Apache License 2.0
27 stars 12 forks source link

lookup and cross-referenced application permissions #36

Open jmfoucher opened 3 years ago

jmfoucher commented 3 years ago

Hello,

when trying to create a record in an application (A) with a lookup field to another application (B), it always ended up with a GAIA_LO04 error code ('フィールド「fieldA」の値「fieldAvalue」が、ルックアップの参照先のフィールドにないか、また はアプリやフィールドの閲覧権限がありません。' ). The applications permission and fields permissions were checked several times and were fine. After checking this article, I modified yaml file like this :

apps:
    appA:
        id: XX
        token: tokenA,tokenB
    appB:
        id: XX
        token: tokenB

It works now but having tokenB in appA's token string makes it difficult to read and understand that appA needs appB permission as well.

Is there another nicer way to do this either in yaml file or in python?