Power Apps Code Component 开发记录

  前言

  最近在做一些Power Apps 代码组件开发,记录下开发的步骤,可能比较简单,但真的一句废话都没有,这里也主要做一个记录,大家有兴趣的可以参考下。

  正文

  创建解决方案

pac pcf init --namespace <PCFComponentSpace> --name <PCFField> --template field
pac pcf init --namespace PCFDropdownSpace --name PCFDropdown --template field install

  在Visual Studio Code中打开解决方案

Code .

  安装fabric ui组件

npm install office-ui-fabric-react

  编写代码

  ......

  编译解决方案

npm run build

  预览和调试解决方案

npm start
npm start watch

  创建打包目录

mkdir Solutions
cd Solutions

  初始化Dataverse 解决方案

pac solution init --publisher-name pcfcomponent --publisher-prefix pcf

  添加组件到解决方案

pac solution add-reference --path "D:\Project\PowerApps\DemoApps"

  生成/发布解决方案包

msbuild /t:build /restore
msbuild /p:configuration=Release

  连接CDS

pac auth create --url <your Common Data Service org’s url>

  推送解决方案

pac pcf push --publisher-prefix <your publisher prefix>

  修改NPM镜像

npm config set registry https://registry.npm.taobao.org
npm config get registry
npm config set registry https://registry.npmjs.org/

  结束语

  整个过程并不复杂,开发起来还是很舒服的,有兴趣的不要害怕复杂,赶紧尝试一下吧。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

霖雨

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值