0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Salesforce Lightning Web Components を用いた官公需情報検索コンポーネント

Last updated at Posted at 2025-03-20

概要

官公需情報ポータルは、政府機関や地方自治体の入札情報を検索できるサイトです。 このポータルが提供するAPIを利用することで、幅広く入札情報を取得できるようです。官公需情報ポータルサイト e-Gov APIカタログ

このAPIを利用し、Salesforce上で官公需情報を検索および表示するLWCコンポーネントを作成してみました。主な機能として、キーワード検索機能、取得した情報の一覧表示、詳細のダイアログ表示ができます。

環境要件

  • Salesforce組織(Developer Edition、Sandbox、Productionなど)
  • Lightning Web Components (LWC) に対応したSalesforce環境(sfコマンド、VSCode等)

インストール手順

  1. リポジトリのクローン

    git clone https://github.com/rtoki/gov-kkjsearch-lwc.git
    cd gov-kkjsearch-lwc
    
  2. Salesforce CLI (sf) のインストールとログイン

    sf login org
    
  3. コンポーネントのデプロイ

    sf project deploy start
    

    もしくは

    sf force:source:push
    
  4. コンポーネントの追加

    • コンポーネントを対象のLightningページに追加

使い方

  1. LWCコンポーネントを任意のLightningページに配置
  2. 検索バーにキーワードを入力し、検索ボタンをクリック
  3. APIを通じて取得した官公需情報が一覧表示される
  4. クリックすると、詳細がダイアログ表示される

image.png
image.png

参考情報

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?